package com.freshmarket.freshmarket.controller.form;

import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
@Validated
public class UserRegisterForm {
    @Min(1)
    private Integer userId;
    @NotEmpty
    private String userName;

    @NotEmpty
    private String userPhone;

    @Min(6)
    private String userPassword;
    @Min(6)
    private String userRePassword;

    private Integer userScore;

    private String userLastLogintime;

    private Double userMoney;
}
